-- GENERATED SPELL FOR [Aspatha the Broodmother] --


function spell0_25498(pUnit, Event) --@Pollen,Self--
pUnit:FullCastSpellOnTarget(45610,pUnit)
pUnit:RegisterEvent('Sorts_25498', 15000, 1)
end

function spell1_25498(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_25498', 1000, 1)
end

function Sorts_25498(pUnit, Event)
local choix_sorts_25498 = math.random(0, 1)
if choix_sorts_25498 == 0 then
pUnit:RegisterEvent('spell0_25498', 1, 1)
end
if choix_sorts_25498 == 1 then
pUnit:RegisterEvent('spell1_25498', 1, 1)
end
end

function mob25498_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25498', math.random(1500, 3000), 1)
end

function mob25498_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25498_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25498_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25498, 1, 'mob25498_Action')
RegisterUnitEvent(25498, 2, 'mob25498_Leave')
RegisterUnitEvent(25498, 3, 'mob25498_Kill')
RegisterUnitEvent(25498, 4, 'mob25498_Die')
